package com.helen.springcloud.service;

import com.helen.springcloud.entities.CommonResult;
import com.helen.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @author yanghl
 * @Description:
 * @date 2022/8/27 9:41
 */
@Component
public class PaymentFallbackService implements PaymentService{

    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(444, "服务降级返回，---PaymentFallbackService", new Payment(id, "ErrorSerial"));
    }
}
